import java.net.InetAddress;
import java.net.UnknownHostException;

public class Test1 {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress ip = InetAddress.getByName("LAPTOP-GT228MSQ");
        System.out.println(ip);
        System.out.println(ip.getHostAddress());
        System.out.println(ip.getHostName());
    }
}
